<html>
	<head>
		<title>iLuv Nails & Spa</title>
		
		<link rel="stylesheet" type="text/css" href="themes/css/main.css" />
		<link rel="stylesheet" type="text/css" href="themes/css/global.css" />
		<link rel="stylesheet" type="text/css" href="themes/js/jquery/themes/base/jquery.ui.all.css" />
		<link rel="stylesheet" type="text/css" href="themes/js/superfish/superfish.css" />
		<link rel="shortcut icon" type="image/ico" href="themes/images/favicon.ico">
		<?php
			if (!empty($css_files) && is_array($css_files)) {
				foreach ($css_files as $css_file) {
					echo "<link rel='stylesheet' type='text/css' href='{$css_file}' />";
				}
			}
		?>
		
		<?php
			if (!empty($js_files) && is_array($js_files)) {
				foreach ($js_files as $js_file) {
					echo "<script type='text/javascript' src='{$js_file}'></script>";
				}
			}
		?>
	</head>
	<body>
		<div id="wrapper">
			<?php include("includes/header.php");?>
			<div id="container">
				<div id="main-content">	
					<?php include("ctp/" . $page . ".php"); ?>
				</div>		
			</div>
			<div id="footer">
                <div id="business-hour">Business hours: 9:30am - 7:00pm Monday-Sunday</div>
                <div id="address">6970 Chestnut St, Gilroy, CA 95020</div>
                <div id="phone">(408)847-8942</div>
				<div id="email">info@iLuvnailspa.com</div>
				<div id="copyright">&copy; 2012 - iLuv</div>
			</div>
		</div>
	</body>
</html>
<?php
 	// 5. Close connection
	if (isset($connection)) {
		mysql_close($connection);
	}
?>